

import yaml


class ReadYaml:
    def __init__(self):
        with open('../../data/data.yaml') as f:
            self.data = yaml.load(f, Loader=yaml.FullLoader)

    def read_path(self, page, locator_name):
        print(self.data[page][locator_name])
        return self.data[page][locator_name]

